	<?php echo $this->Session->flash('sl'); ?>
	<span>Added Schools</span>
	<table cellpadding="0" cellspacing="0">
		<tr><th>School Name:</th><th>Start Date:</th><th>End Date:</th><th>Degree:</th><th>Majors/Minors:</th><th>Delete:</th></tr>
<?php
	$line = 1;
	foreach ($data as $sch) {
		echo (($line++)% 2==1)? '<tr class="odd">': '<tr class="even">';
		echo "\n<td>{$sch['School']['schoolname']}</td>";
		
		$dt = explode( '-', $sch['School']['start_date']);
		echo "<td>{$dt[1]}/{$dt[0]}</td>";
		
		$dt = explode( '-', $sch['School']['end_date']);
		echo "<td>{$dt[1]}/{$dt[0]}</td><td>{$sch['School']['degrees']}</td><td>{$sch['School']['major_minor']}</td><td>";
		echo $this->Js->link('delete', 
						array('controller' => 'Schools', 'action' => 'delete',  $sch['School']['id']), 
						array('update' => '#school_list'));
		echo "</td></tr>";
	}
?>
	</table>